package com.chinasoft.lzw;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class lzw implements TrueWord {

    public lzw()
    {
        wordList.add("想玩游戏");
        wordList.add("想吃饭");
        wordList.add("想睡懒觉");
        wordList.add("古希腊掌管git的神");
    }

    List<String> wordList = new ArrayList<>();
    Random rand = new Random();

    @Override
    public String getName() {
        return "lzw";
    }

    @Override
    public String getWords() {
        int index = rand.nextInt(wordList.size());
        return wordList.get(index);
    }
}
